[gd_scene load_steps=3 format=3 uid="uid://cpshnmpuypsr6"]

[ext_resource type="Script" path="res://add_category/add_category.gd" id="1_25pux"]
[ext_resource type="PackedScene" uid="uid://dm7enuprkc8la" path="res://catalog_data_label/catalog_data_label.tscn" id="2_1dsdv"]

[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_25pux")

[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.309804, 0.309804, 0.309804, 1)

[node name="MarginContainer" type="MarginContainer" parent="ColorRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 50
theme_override_constants/margin_top = 50
theme_override_constants/margin_right = 50
theme_override_constants/margin_bottom = 50

[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 50

[node name="HBoxContainer" type="HBoxContainer" parent="ColorRect/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 100

[node name="BackBtn" type="Button" parent="ColorRect/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
text = "НАЗАД"

[node name="EmptySpace2" type="Control" parent="ColorRect/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3

[node name="CatalogDataLabel" parent="ColorRect/MarginContainer/VBoxContainer/HBoxContainer" instance=ExtResource("2_1dsdv")]
layout_mode = 2
size_flags_horizontal = 3

[node name="EmptySpace" type="Control" parent="ColorRect/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3

[node name="ColorRect" type="ColorRect" parent="ColorRect/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 25.0
color = Color(0.372549, 0.372549, 0.372549, 1)

[node name="CenterContainer" type="CenterContainer" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 20.0

[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer"]
layout_mode = 2
theme_override_constants/separation = 50

[node name="HBoxContainer" type="HBoxContainer" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer"]
layout_mode = 2

[node name="VSeparator3" type="VSeparator" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5

[node name="Labels" type="VBoxContainer" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 20

[node name="CatalogDataNameLbl" type="Label" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/Labels"]
layout_mode = 2
theme_override_font_sizes/font_size = 25
text = "НАЗВАНИЕ КАТЕГОРИИ: "

[node name="DecimalNumberLbl" type="Label" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/Labels"]
layout_mode = 2
theme_override_font_sizes/font_size = 25
text = "ДЕЦИМАЛЬНЫЙ НОМЕР КАТЕГОРИИ: "

[node name="DecimalNumberLbl2" type="Label" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/Labels"]
layout_mode = 2
theme_override_font_sizes/font_size = 25
text = "РОДИТЕЛЬСКАЯ КАТЕГОРИЯ: "

[node name="DescrLbl" type="Label" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/Labels"]
layout_mode = 2
theme_override_font_sizes/font_size = 25
text = "ОПИСАНИЕ КАТЕГОРИИ: "

[node name="VSeparator" type="VSeparator" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5

[node name="fields" type="VBoxContainer" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 20

[node name="CategoryNameLE" type="LineEdit" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/fields"]
custom_minimum_size = Vector2(450, 35)
layout_mode = 2
placeholder_text = "Введите название категории"
max_length = 64

[node name="DecimalNumberLE" type="LineEdit" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/fields"]
custom_minimum_size = Vector2(0, 35)
layout_mode = 2
placeholder_text = "Введите цифровой номер категории"
max_length = 2

[node name="ParentCatIds" type="ItemList" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/fields"]
custom_minimum_size = Vector2(0, 35)
layout_mode = 2

[node name="TextEdit" type="TextEdit" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer/fields"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
placeholder_text = "Введите описание категории"
caret_blink = true

[node name="VSeparator2" type="VSeparator" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5

[node name="Button" type="Button" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 20
text = "Сохранить"

[node name="IncorrectValueLbl" type="Label" parent="ColorRect/MarginContainer/VBoxContainer/ColorRect/CenterContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 0, 0, 1)
theme_override_font_sizes/font_size = 25
text = " "
horizontal_alignment = 1
